require(["config"], function() {
	require(["jquery", "template", "header"], function($, template) {
		function List(){
			this.renderList();
		}
		List.prototype = {
			constructor: List,
			renderList: function() {
				$.ajax("http://rap2api.taobao.org/app/mock/data/515388")
				  .done(function(data) {
				  	var data = {list: data.res_body.list};
				  	var html = template("list_template", data);
				  	$(".prod_list").html(html);
				  });
			}
		}
		new List();
	});
});